import request from "@/plugins/request"

// 获取首页商品分类列表
export const getCategoryList = (params) => {
  return request({
    url: "app-api/product/category/list",
    method: "get",
    params,
  })
}

// 获取商品列表
export const getProductList = (params) => {
  return request({
    url: "app-api/product/spu/page",
    method: "get",
    params,
  })
}

// 获取商品详情
export const getProductDetail = (params) => {
  return request({
    url: "app-api/product/spu/get-detail",
    method: "get",
    params,
  })
}

// 出行地列表
export const getPlaceList = (params) => {
  return request({
    url: "app-api/product/spu/placeList",
    method: "get",
    params,
  })
}